sh4 support
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Wed, 2 Apr 2025 18:52:06 +0000 (20:52 +0200)
committerBastian Germann <bage@debian.org>
Wed, 2 Apr 2025 18:52:06 +0000 (20:52 +0200)
commit91310884d7e2a0452f0cd9954b8d237fdd3a6e60
tree77a822f3b72713a54128c5da685c3b6384cd2473
parent78eb161e65cbe749f9c26aa754745e4a4d659498
sh4 support

Forwarded: not yet.
BTS: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027168

onetbb currently FTBFS on sh4 because the source code assumes that the target
FPU supports all four rounding modes (FE_TONEAREST, FE_DOWNWARD, FE_UPWARD and
FE_TOWARDZERO) which is not the case on sh4 which supports FE_TONEAREST and
FE_TOWARDZERO only [1].

The attached patch fixes these assumptions for sh4 and makes the code build. I
have already patched and uploaded the package to the unreleased distribution
so that the mold linker can build on sh4 as well.

I will forward the patch later after reformating it.
===================================================================

Gbp-Pq: Name sh4-support.patch
test/common/fp_control.h